package org.soft.xinyu.equipmentmanagement.service;

import org.soft.xinyu.equipmentmanagement.entity.MachineFile;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author vicente
 * @since 2021-11-22
 */
public interface MachineFileService extends IService<MachineFile> {

    /**
     * 上传文件
     * @return
     */
    public Object uploadMachineFile();

    /**
     * 用id删除设备文件以及数据库记录
     *
     * @param machineFile
     * @return
     */
    public Boolean deleteMachineFileById(MachineFile machineFile);

    /**
     * 用machineId删除设备文件以及数据库记录
     *
     * @param machineId
     * @return
     */
    public Boolean deleteMachineFileByMachineId(String machineId);
}
